#include <QObject>
#include <QThread>

#include "mythread.h"
class Master:public QObject{

    Q_OBJECT

    public:
        Master(){
            //start the thread
            connect(&my,
                    SIGNAL(finished()),
                    this,
                    SLOT(tell_when_finish())
                            );

            my.start();
            printf("Mever finished wowowow");
        }

    public slots:
        void tell_when_finish();
    
    //signals:
    //    void set_that_value(bool some);

    private:
        MyThread my;
        
};
